import express from 'express';
import { getHtmlStr } from './util';

const app = express();
app.use(express.static('public'));

app.get('*',(req,res)=>{
    console.log('request');
    res.send(getHtmlStr(req));
})

app.listen(3000,()=>{
    console.log('服务器监听在3000端口');
});